<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"  class="loading" lang="en" data-textdirection="ltr">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
  <meta name="author" content="PIXINVENT">
  <title th:if="${null == recruit.recruitId}">添加招聘计划管理后台</title>
  <title th:if="${null != recruit.recruitId}">修改招聘计划管理后台</title>
  <link rel="stylesheet" type="text/css" th:href="@{/app-assets/css/vendors.css}">
  <link rel="stylesheet" type="text/css" th:href="@{/app-assets/css/vertical-menu.css}">
  <link rel="stylesheet" type="text/css" th:href="@{/app-assets/css/bootstrap-extended.css}">
</head>

<body>
<div class="content-wrapper">
  <div class="content-header ">
    <div class="content-header-left mb-2 clearfix">
      <h3 class="content-header-title mb-0 pull-left" th:if="${null == recruit.recruitId}">添加招聘计划</h3>
      <h3 class="content-header-title mb-0 pull-left" th:if="${null != recruit.recruitId}">修改招聘计划</h3>
      <ol class="breadcrumb pull-right">
        <li><a th:href="@{/recruit/recruitplan}">招聘计划</a></li>
        <li class="active" th:if="${null == recruit.recruitId}">添加招聘计划</li>
        <li class="active" th:if="${null != recruit.recruitId}">修改招聘计划</li>
      </ol>
    </div>
  </div>

  <div class="card">
    <form id="recruitForm" name="recruitForm" th:method="POST" th:action="@{/recruitplan}" th:object="${recruit}">
      <!--2、在 form 表单中增加一个 input 输入框（hidden）用来告诉springboot我们要发送什么请求（PUT、DELETE）-->
      <input type="hidden" name="_method" value="PUT" th:if="${null != recruit.recruitId}"/>
      <input type="hidden" name="recruitId" th:value="*{recruitId}">
      <div class="card-content">
        <div class="card-body">

          <div class="form1 form3">
            <ul class="row">
              <li class="col-sm-10 col-xs-12">
                <span>姓名：</span><input type="text" name="name" class="form-control" th:value="*{name}">
              </li>
              <li class="col-sm-10 col-xs-12">
                <span>性别：</span>
                <select name="gender" class="form-control" th:value="*{gender}">
                  <option value="1">女</option>
                  <option value="2">男</option>
                </select>
              </li>
              <li class="col-sm-10 col-xs-12">
                <span>出生日期：</span>
                <input type="date" name="birthday" class="form-control" th:value="*{birthday}">
              </li>
              <li class="col-sm-10 col-xs-12">
                <span>应聘岗位：</span><input type="text" name="post" class="form-control" th:value="*{post}">
              </li>
              <li class="col-sm-10 col-xs-12">
                <span>身份证号：</span><input type="text" name="idCard" class="form-control" th:value="*{idCard}">
              </li>
              <li class="col-sm-10 col-xs-12">
                <span>联系电话：</span><input type="text" name="phone" class="form-control" th:value="*{phone}">
              </li>
              <li class="col-sm-10 col-xs-12">
                <span>地址：</span><input type="text" name="address" class="form-control" th:value="*{address}">
              </li>
              <li class="col-sm-10 col-xs-12">
                <span>学历：</span>
                <select name="education" class="form-control" th:value="*{education}">
                  <option value="1">专科</option>
                  <option value="2">本科</option>
                  <option value="3">硕士</option>
                  <option value="4">博士</option>
                </select>
              </li>
              <li class="col-sm-10 col-xs-12">
                <span>应聘时间：</span>
                <input type="date" name="recruitTime"da class="form-control date" th:value="*{recruitTime}">
              </li>
              <li class="col-sm-10 col-xs-12">
                <input type="submit" id="add" name="add" class="btn btn-primary" th:value="确认保存">
              </li>
            </ul>
          </div>
        </div>
      </div>
    </form>
  </div>
</div>


<script th:src="@{/app-assets/js/vendors.min.js}" type="text/javascript"></script>
<script th:src="@{/app-assets/js/app-menu.js}" type="text/javascript"></script>
<script th:src="@{/app-assets/js/app.js}" type="text/javascript"></script>
<script th:src="@{/app-assets/js/echarts.min.js}" type="text/javascript"></script>
<script th:src="@{/app-assets/js/jquery.bigcolorpicker.min.js}" type="text/javascript"></script>
<script th:src="@{/app-assets/laydate/laydate.js}" type="text/javascript"></script>
<script>
  lay('#version').html('-v' + laydate.v);
  laydate.render({
    elem: '#test1'
    , range: true
    , theme: '#00B5B8'
  });
</script>
</body>

</html>